package com.aloda.enums;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RecordCategory {
    PV(1,"浏览量"),
    UV(0,"访客量")
    ;

    @EnumValue
    private int code;

    @JSONField
    private String desc;

    RecordCategory(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}